<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8">
<title><?=$this->config->item('site_title');?></title>
    <?php
    $this->uri->rsegments;
        $str_true = array('shipping/basic', 'shipping/customize', 'multi/index');
        $uurl = strtolower(implode('/', $this->uri->rsegments));

        if (!in_array($uurl, $str_true)) {
        ?>
        <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/css/niceforms-default.css' ?>"/>
    <?php } ?>
    <!-- <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/jeasyui/themes/metro/easyui.css' ?>"/> -->
    <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/jeasyui/themes/icon.css' ?>"/>
    <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/css/bootstrap.css' ?>?20170717"/>
    <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/css/font-awesome.min.css' ?>?20170717"/>
    <?php if ($this->uri->segment(1) == 'sc'): ?>
        <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/css/css.css' ?>?20170717"/>
    <?php else: ?>
        <link rel="stylesheet" type="text/css" href="<?= base_url() . 'resource/css/css-ot.css' ?>?20170217"/>
    <?php endif; ?>
    <script type="text/javascript" src="<?= base_url() . 'resource/js/jquery.min.js' ?>"></script>
    <script type="text/javascript" src="<?= base_url() . 'resource/js/bootstrap.min.js' ?>"></script>
    <script type="text/javascript" src="<?= base_url() . 'resource/js/common.js' ?>" charset="utf-8"></script>
    <script type="text/javascript" src="<?= base_url() . 'resource/jeasyui/jquery.easyui.min.js' ?>"></script>
</head>


<body>
<div id="container">
<!--top start-->
<header id="header" class="navbar navbar-static-top">
  <div class="navbar-header">
    <a type="button" id="button-menu" class="pull-left"><i class="fa fa-dedent fa-lg"></i></a>
    <a href="<?= base_url()?>" class="navbar-brand"><img src="<?=base_url().'resource/images/index.jpg'?>" alt="tomrepair oms" title="tomrepair oms"></a></div>
    <ul class="nav pull-right">
    <!-- <li class="dropdown">
      <a class="dropdown-toggle" data-toggle="dropdown"><span class="label label-danger pull-left">4915</span> <i class="fa fa-bell fa-lg"></i></a>
      <ul class="dropdown-menu dropdown-menu-right alerts-dropdown">
        <li><a href="" style="display: block; overflow: auto;"><span class="label label-warning pull-right">65</span>处理中订单</a></li>
        <li><a href=""><span class="label label-success pull-right">2</span>已完成订单</a></li>
        <li><a href=""><span class="label label-danger pull-right">4902</span>退货</a></li>
        <li><a href=""><span class="label label-success pull-right">0</span>在线客户</a></li>
        <li><a href=""><span class="label label-danger pull-right">0</span>待审批</a></li>
        <li><a href=""><span class="label label-danger pull-right">0</span>缺货</a></li>
      </ul>
    </li> -->
    <li>
        <select class="form-control language" onchange="if(this.value!='')location.href=this.value">
            <option value="" >Select Language...</option>
            <option value="<?=base_url(anewlang('english'))?>" <?=$optlang['english']?> >English</option>
            <option value="<?=base_url(anewlang('sc'))?>" <?=$optlang['sc']?> >简体中文</option>
            <option value="<?=base_url(anewlang('es'))?>" <?=$optlang['es']?> >Español</option>
        </select>
    </li>
    <li><a href="<?=blang_url('home/userQuit/')?>"><span class="hidden-xs hidden-sm hidden-md"><?=lang('member_tcdl')?></span> <i class="fa fa-sign-out fa-lg"></i></a></li>
  </ul>
</header>

<!-- ajax加载效果 -->
<div id="loading">loading...</div>

<script type="text/javascript">
$.ajaxSetup({
    beforeSend:function(){
        $("#loading").css('display','block');
    },
    error:function () {
        $("#loading").css('display','none');
    },
    dataFilter:function(data, type){
        $("#loading").css('display','none');
        return data;
    },
    success:function () {
        $("#loading").css('display','none');
    },
    complete:function () {
        $("#loading").css('display','none');
    }
});
$(document).ajaxStop(function () {
        $("#loading").css('display','none');
    });


</script>
<!-- //ajax加载效果 -->